package org.fuys.coder.common.config.beans;

import de.mkammerer.argon2.Argon2;
import de.mkammerer.argon2.Argon2Factory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.common.config
 * @className: PwdSecurityConfig
 * @author: WangJing
 * @description: 密码加密相关配置
 * @date: 2024/6/19 17:04
 * @version: 1.0
 */
@Configuration
public class PwdSecurityConfig {
    @Bean
    public Argon2 argon2(){
        return Argon2Factory.create(Argon2Factory.Argon2Types.ARGON2id);
    }
}
